package com.thememaker.lockstyle.bean.VariableBinders;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

/**
 * Created by binghui.hang on 2018/2/23.
 * <!—重力传感器-->
 * <SensorBinder type="gravity">
 * <Variable name="" index="0"/>
 * <Variable name="" index="1"/>
 * <Variable name=" index="2"/>
 * </SensorBinder>
 */
@XmlRootElement(name = "SensorBinder")
public class SensorBinder {
    private String type;
    private List<Variable> variableList;

    @XmlAttribute(name = "type")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @XmlElement(name = "Variable")
    public List<Variable> getVariableList() {
        return variableList;
    }

    public void setVariableList(List<Variable> variableList) {
        this.variableList = variableList;
    }
}
